package com.sw.client;

public class Demo {

	public static void main(String[] args) {
		
		//multiplication();
		trigon();
	}

	public static void trigon(){
		for (int j = 0; j <=4; j++) {
			
			for (int i = 0; i < j; i++) {
				
				System.out.print("*");
			}
			
			System.out.println();
		}
	}
	
	
	public static void multiplication() {
		for (int i = 1; i <= 9; i++) {
			for (int j = 1; j <= i; j++) {
				System.out.print(j+"X"+i + "=" + j*i+"\t");
			}
			System.out.println();
		}
	}
}
